<?php
html::printPath(html::createCrudPath('organization', $organization, 'name', 'id'));
$msg->printMessages();

$fb = new FormBuilder('organization', $organization);
$fb->text('name')->required();
$fb->comboBox('country_code', $countryOptions)->required();
$fb->text('street');
$fb->text('city');
$fb->text('postal_code');
$fb->text('telephone');
$fb->text('email');
$fb->yesNoBox('emails_enabled')->noEmptyOption();
$fb->comboBox('preferred_language', form::languageOptions())->noEmptyOption()->required();
$fb->autocompleter('organizer_id', $organizerAcValues)->mustMatch();
$fb->textarea('notes');
$fb->submitButton();
$fb->write();
